<!DOCTYPE html>
<html lang="en">
<head>
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="yes" name="apple-touch-fullscreen">
    <meta content="telephone=no,email=no" name="format-detection">
    <meta name="wap-font-scale" content="no">
    <meta charset="UTF-8" name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title><?=$title?></title>
    <link rel="stylesheet" href="/mobile/css/reset.css">
    <link rel="stylesheet" href="/mobile/css/mui.min.css">
    <script src="/mobile/js/flexible_css.debug.js"></script>
    <script src="/mobile/js/flexible.debug.js"></script>
    <link rel="stylesheet" href="/mobile/css/main_train.css">

</head>
<body style="background: #f5f5f5;">
<div id="back-btn-wrap">
    <a class="back-btn" href="javascript:void(0)"></a>成绩卡
</div>
<div class="content-main">
    <div class="re-wrap">
        <p class="tips">你答对了</p>
        <div class="percent">
            <i class="correct_num"></i><i class="total-num"></i>
        </div>

        <section class="re-show-wrap clearfix">

        </section>
        <button class="btn3">退出</button>
    </div>
</div>

<script src="/mobile/js/jquery.min.js"></script>
<script src="/mobile/js/common.js"></script>
<script src="/mobile/js/mui.min.js"></script>
<script src="/mobile/js/jrrpc.js"></script>

<script>
    $(function(){
        mui.init();

        function exitEdit(e){
            if(iService.getUserAgent().isiOS){
                FinishPaper();
            }else {
                h5button.FinishPaper();
            }
        }

        var appParam = iService.getAppParam();
        var param = {
            postData:'Question/results',
            data: {}
        };
        $.extend(param.data,appParam);

        $.JsonRpc(param,function(result){
            console.log(result.data);
            var data = result.data;
            var question_num = data.length;
            var correct_num = 0;
            $.each(data,function(i){
                if(data[i].q_correct==data[i].m_correct){
                    correct_num +=1;
                    $('<div class="item"><b><a href="review?llid='+appParam.llid+'&token='+appParam.token+'&eq='+(parseInt(i)+1)+'&meq='+data[i].q_correct+'&ceq='+data[i].m_correct+'">'+(parseInt(i)+1)+'</a></b></div>').appendTo(".re-show-wrap");
                }else {
                    $('<div class="item"><b class="mistake"><a href="review?llid='+appParam.llid+'&token='+appParam.token+'&eq='+(parseInt(i)+1)+'&meq='+data[i].q_correct+'&ceq='+data[i].m_correct+'">'+(parseInt(i)+1)+'</a></b></div>').appendTo(".re-show-wrap");
                }
            });
            $('.correct_num').html(correct_num);
            $('.total-num').html('/'+question_num+'题');

        });

        $(".back-btn").on('click',function(){
            exitEdit();
        });

        $('.btn3').on('click',function(){
            exitEdit();
        });
        $.get('https://www.wzxaini9.cn/api/flow/index/id/11', function (data) {
            console.log($.parseJSON(data));
        })
    });
</script>
</body>
</html>












